package com.weseal.form;

import com.weseal.domain.UserInfo;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author weseal
 * @title
 * @description
 * @usage
 * @copyright Copyright 2014  rrmj Corporation. All rights reserved.
 * @company
 * @create 2017/9/6
 */
public class UserInfoForm implements Serializable {
	private static final long serialVersionUID = 2370718788624426111L;
	/**
	 * ID 主键
	 */
	private Long id;
	
	private String code;
	private String encryptedData;
	private String iv;
	private String type;
	
	
	
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	
	
	public UserInfo convert2Domain() {
		UserInfo userInfo = new UserInfo();
		BeanUtils.copyProperties(this, userInfo);
		return userInfo;
	}
	
	public String getCode() {
		return code;
	}
	
	public void setCode(String code) {
		this.code = code;
	}
	
	public String getEncryptedData() {
		return encryptedData;
	}
	
	public void setEncryptedData(String encryptedData) {
		this.encryptedData = encryptedData;
	}
	
	public String getIv() {
		return iv;
	}
	
	public void setIv(String iv) {
		this.iv = iv;
	}
	
	public String getType() {
		return type;
	}
	
	public void setType(String type) {
		this.type = type;
	}
}
